﻿using Abp.Application.Services;
using AVIS.OutBound.CarGroups.Dto;
using AVIS.OutBound.Orders.Dto;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Web.Http;

namespace AVIS.OutBound.Orders
{
    /// <summary>
    /// 在线预定的应用服务类
    /// </summary>
    public interface IOrderAppService : IApplicationService
    {
        /// <summary>
        /// 提交订单（预订单方式）
        /// </summary>
        /// <param name="input">请求参数</param>
        /// <returns></returns>
        SubmitOrderOutput Submit(SubmitOrderInput input);

        /// <summary>
        /// 取消订单
        /// </summary>
        /// <param name="input">请求参数</param>
        /// <returns></returns>
        CancelOrderOutput Cancel(CancelOrderInput input);

        /// <summary>
        /// 查询订单（按订单号和用户姓查询）
        /// </summary>
        /// <param name="input">请求参数</param>
        /// <returns></returns>
        [HttpGet]
        OrderOutput Detail(QueryOrderInput input);
    }
}
